package vip.xiaonuo.smzq.modular.lifecycle.constant;

import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * 系统常量
 */
public class LifeCycleConstant {
    public static List<String> mineTypes= CollUtil.newArrayList("无矿权","采矿权","探矿权");
    public static List<String> mineTypeCodes= CollUtil.newArrayList("301001","301002","301003");
    public static String baseFileUrl = "c:\\file\\lifeCycle\\";
//    标高最大key
    public static String heightMaxKey = "heightMax";
//    标高最小key
    public static String heightMinKey = "heightMin";
//地上高度key
    public static String overGroundKey = "overGroundHeight";
//地下高度key
    public static String underGroundKey = "underGroundHeight";
//    oomr:['1797434029249368065'],
//    province:['1793564134535237634','1797433966892650497','1570687866138206208'],
//    city:['1796441022362509314'],
//    county:['1797433849422778369'],
    public static String oomrName = "矿业权人";
    public static String provinceName = "省级用户";
    public static String cityName = "市级用户";
    public static String countyName = "县级用户";

    public static String fl = "分立";

    public static String hb = "合并";

    public static String yf = "压覆";

    public static String  zc = "正常";

    public static String wly = "未利用";

    public static String sc = "生产";

    public static String gb = "关闭";
    //允许生成族谱的节点类型
    public static List<String> crePedNodTypes = CollUtil.newArrayList("压覆报告","探矿权新立", "探矿权注销","勘探报告", "探转采", "采矿权变更", "采矿权换证审批", "采矿权新立", "采矿权延续",  "采矿权注销", "探矿权转让", "探矿权变更", "探矿权延续", "闭坑报告");
    //第一个族谱规则列表
    public static List<String> firstPedRuleTypes = CollUtil.newArrayList("勘探报告","勘查报告");

//    分立族谱节点类型
    public static List<String> flPedTypes = CollUtil.newArrayList("探矿权新立","采矿权新立");

    public static String kqxbg = "矿权需变更";

    //矿区范围标记
    public static String dml = "dml";

    public static String cal = "cal";

    public static String mom = "mom";

    public static String exp = "exp";

    public static String preCov = "preCov";

    public static String expMin = "expMin";

    public static String yearReport = "年报";

//    public static List<String> mineTypeCodes= CollUtil.newArrayList("301001","301002","301003");

    /**
     * 得到矿业权类型图片对应的前端界面图片颜色
     * @return
     */
    public static String getMineTypeColor(String mineType){
        if(StrUtil.equals(CollUtil.getFirst(mineTypeCodes), mineType)){
            return "#C26AFF";
        }else if (StrUtil.equals(CollUtil.get(mineTypeCodes,1), mineType)){
            return "#00A2FF";
        }else if(StrUtil.equals(CollUtil.getLast(mineTypeCodes), mineType)){
            return "#72FF6F";
        }
        return null;
    }
}
